home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 19
/
Mac Magazin and MacEasy Magazine CD - Issue 19.iso
/
Utilities
/
uae-0.4
/
Source Code
/
CPU Sources
/
cpuB.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-02-13
|
40KB
|
1,360 lines
#include "config.h"
#include "amiga.h"
#include "options.h"
#include <stdlib.h>
#include "memory.h"
#include "custom.h"
#include "newcpu.h"
#include "cputbl.h"
void op_b000(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ BYTE src = regs.d[srcreg];
{ BYTE dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((BYTE)(src)) < 0;
bool flgo = ((BYTE)(dst)) < 0;
bool flgn = ((BYTE)(newv)) < 0;
regs.z = ((BYTE)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UBYTE)(src)) > ((UBYTE)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b010(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
BYTE src = get_byte(srca);
{ BYTE dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((BYTE)(src)) < 0;
bool flgo = ((BYTE)(dst)) < 0;
bool flgn = ((BYTE)(newv)) < 0;
regs.z = ((BYTE)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UBYTE)(src)) > ((UBYTE)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b018(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
BYTE src = get_byte(srca);
{ regs.a[srcreg] += (srcreg == 7) ? 2 : 1;
{ BYTE dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((BYTE)(src)) < 0;
bool flgo = ((BYTE)(dst)) < 0;
bool flgn = ((BYTE)(newv)) < 0;
regs.z = ((BYTE)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UBYTE)(src)) > ((UBYTE)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b020(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ regs.a[srcreg] -= (srcreg == 7) ? 2 : 1;
{ CPTR srca = regs.a[srcreg];
BYTE src = get_byte(srca);
{ BYTE dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((BYTE)(src)) < 0;
bool flgo = ((BYTE)(dst)) < 0;
bool flgn = ((BYTE)(newv)) < 0;
regs.z = ((BYTE)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UBYTE)(src)) > ((UBYTE)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b028(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg] + (LONG)(WORD)nextiword();
BYTE src = get_byte(srca);
{ BYTE dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((BYTE)(src)) < 0;
bool flgo = ((BYTE)(dst)) < 0;
bool flgn = ((BYTE)(newv)) < 0;
regs.z = ((BYTE)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UBYTE)(src)) > ((UBYTE)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b030(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
UWORD srcdp = nextiword();
srca += (LONG)(BYTE)(srcdp & 0xFF);
{ ULONG srcdpr = srcdp & 0x8000 ? regs.a[(srcdp & 0x7000) >> 12] : regs.d[(srcdp & 0x7000) >> 12];
if (!(srcdp & 0x800)) srcdpr = (LONG)(WORD)srcdpr;
srca += srcdpr;
{ BYTE src = get_byte(srca);
{ BYTE dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((BYTE)(src)) < 0;
bool flgo = ((BYTE)(dst)) < 0;
bool flgn = ((BYTE)(newv)) < 0;
regs.z = ((BYTE)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UBYTE)(src)) > ((UBYTE)(dst));
regs.n = flgn != 0;
}}}}}}}}
void op_b038(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = (LONG)(WORD)nextiword();
BYTE src = get_byte(srca);
{ BYTE dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((BYTE)(src)) < 0;
bool flgo = ((BYTE)(dst)) < 0;
bool flgn = ((BYTE)(newv)) < 0;
regs.z = ((BYTE)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UBYTE)(src)) > ((UBYTE)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b039(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = nextilong();
BYTE src = get_byte(srca);
{ BYTE dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((BYTE)(src)) < 0;
bool flgo = ((BYTE)(dst)) < 0;
bool flgn = ((BYTE)(newv)) < 0;
regs.z = ((BYTE)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UBYTE)(src)) > ((UBYTE)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b03a(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = m68k_getpc();
srca += (LONG)(WORD)nextiword();
{ BYTE src = get_byte(srca);
{ BYTE dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((BYTE)(src)) < 0;
bool flgo = ((BYTE)(dst)) < 0;
bool flgn = ((BYTE)(newv)) < 0;
regs.z = ((BYTE)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UBYTE)(src)) > ((UBYTE)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b03b(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = m68k_getpc();
UWORD srcdp = nextiword();
srca += (LONG)(BYTE)(srcdp & 0xFF);
{ ULONG srcdpr = srcdp & 0x8000 ? regs.a[(srcdp & 0x7000) >> 12] : regs.d[(srcdp & 0x7000) >> 12];
if (!(srcdp & 0x800)) srcdpr = (LONG)(WORD)srcdpr;
srca += srcdpr;
{ BYTE src = get_byte(srca);
{ BYTE dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((BYTE)(src)) < 0;
bool flgo = ((BYTE)(dst)) < 0;
bool flgn = ((BYTE)(newv)) < 0;
regs.z = ((BYTE)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UBYTE)(src)) > ((UBYTE)(dst));
regs.n = flgn != 0;
}}}}}}}}
void op_b03c(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ BYTE src = nextiword();
{ BYTE dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((BYTE)(src)) < 0;
bool flgo = ((BYTE)(dst)) < 0;
bool flgn = ((BYTE)(newv)) < 0;
regs.z = ((BYTE)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UBYTE)(src)) > ((UBYTE)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b040(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ WORD src = regs.d[srcreg];
{ WORD dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((WORD)(src)) < 0;
bool flgo = ((WORD)(dst)) < 0;
bool flgn = ((WORD)(newv)) < 0;
regs.z = ((WORD)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UWORD)(src)) > ((UWORD)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b048(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ WORD src = regs.a[srcreg];
{ WORD dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((WORD)(src)) < 0;
bool flgo = ((WORD)(dst)) < 0;
bool flgn = ((WORD)(newv)) < 0;
regs.z = ((WORD)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UWORD)(src)) > ((UWORD)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b050(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
WORD src = get_word(srca);
{ WORD dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((WORD)(src)) < 0;
bool flgo = ((WORD)(dst)) < 0;
bool flgn = ((WORD)(newv)) < 0;
regs.z = ((WORD)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UWORD)(src)) > ((UWORD)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b058(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
WORD src = get_word(srca);
{ regs.a[srcreg] += 2;
{ WORD dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((WORD)(src)) < 0;
bool flgo = ((WORD)(dst)) < 0;
bool flgn = ((WORD)(newv)) < 0;
regs.z = ((WORD)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UWORD)(src)) > ((UWORD)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b060(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ regs.a[srcreg] -= 2;
{ CPTR srca = regs.a[srcreg];
WORD src = get_word(srca);
{ WORD dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((WORD)(src)) < 0;
bool flgo = ((WORD)(dst)) < 0;
bool flgn = ((WORD)(newv)) < 0;
regs.z = ((WORD)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UWORD)(src)) > ((UWORD)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b068(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg] + (LONG)(WORD)nextiword();
WORD src = get_word(srca);
{ WORD dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((WORD)(src)) < 0;
bool flgo = ((WORD)(dst)) < 0;
bool flgn = ((WORD)(newv)) < 0;
regs.z = ((WORD)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UWORD)(src)) > ((UWORD)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b070(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
UWORD srcdp = nextiword();
srca += (LONG)(BYTE)(srcdp & 0xFF);
{ ULONG srcdpr = srcdp & 0x8000 ? regs.a[(srcdp & 0x7000) >> 12] : regs.d[(srcdp & 0x7000) >> 12];
if (!(srcdp & 0x800)) srcdpr = (LONG)(WORD)srcdpr;
srca += srcdpr;
{ WORD src = get_word(srca);
{ WORD dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((WORD)(src)) < 0;
bool flgo = ((WORD)(dst)) < 0;
bool flgn = ((WORD)(newv)) < 0;
regs.z = ((WORD)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UWORD)(src)) > ((UWORD)(dst));
regs.n = flgn != 0;
}}}}}}}}
void op_b078(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = (LONG)(WORD)nextiword();
WORD src = get_word(srca);
{ WORD dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((WORD)(src)) < 0;
bool flgo = ((WORD)(dst)) < 0;
bool flgn = ((WORD)(newv)) < 0;
regs.z = ((WORD)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UWORD)(src)) > ((UWORD)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b079(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = nextilong();
WORD src = get_word(srca);
{ WORD dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((WORD)(src)) < 0;
bool flgo = ((WORD)(dst)) < 0;
bool flgn = ((WORD)(newv)) < 0;
regs.z = ((WORD)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UWORD)(src)) > ((UWORD)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b07a(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = m68k_getpc();
srca += (LONG)(WORD)nextiword();
{ WORD src = get_word(srca);
{ WORD dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((WORD)(src)) < 0;
bool flgo = ((WORD)(dst)) < 0;
bool flgn = ((WORD)(newv)) < 0;
regs.z = ((WORD)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UWORD)(src)) > ((UWORD)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b07b(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = m68k_getpc();
UWORD srcdp = nextiword();
srca += (LONG)(BYTE)(srcdp & 0xFF);
{ ULONG srcdpr = srcdp & 0x8000 ? regs.a[(srcdp & 0x7000) >> 12] : regs.d[(srcdp & 0x7000) >> 12];
if (!(srcdp & 0x800)) srcdpr = (LONG)(WORD)srcdpr;
srca += srcdpr;
{ WORD src = get_word(srca);
{ WORD dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((WORD)(src)) < 0;
bool flgo = ((WORD)(dst)) < 0;
bool flgn = ((WORD)(newv)) < 0;
regs.z = ((WORD)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UWORD)(src)) > ((UWORD)(dst));
regs.n = flgn != 0;
}}}}}}}}
void op_b07c(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ WORD src = nextiword();
{ WORD dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((WORD)(src)) < 0;
bool flgo = ((WORD)(dst)) < 0;
bool flgn = ((WORD)(newv)) < 0;
regs.z = ((WORD)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UWORD)(src)) > ((UWORD)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b080(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ LONG src = regs.d[srcreg];
{ LONG dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b088(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ LONG src = regs.a[srcreg];
{ LONG dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b090(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
LONG src = get_long(srca);
{ LONG dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b098(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
LONG src = get_long(srca);
{ regs.a[srcreg] += 4;
{ LONG dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b0a0(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ regs.a[srcreg] -= 4;
{ CPTR srca = regs.a[srcreg];
LONG src = get_long(srca);
{ LONG dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b0a8(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg] + (LONG)(WORD)nextiword();
LONG src = get_long(srca);
{ LONG dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b0b0(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
UWORD srcdp = nextiword();
srca += (LONG)(BYTE)(srcdp & 0xFF);
{ ULONG srcdpr = srcdp & 0x8000 ? regs.a[(srcdp & 0x7000) >> 12] : regs.d[(srcdp & 0x7000) >> 12];
if (!(srcdp & 0x800)) srcdpr = (LONG)(WORD)srcdpr;
srca += srcdpr;
{ LONG src = get_long(srca);
{ LONG dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}}
void op_b0b8(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = (LONG)(WORD)nextiword();
LONG src = get_long(srca);
{ LONG dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b0b9(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = nextilong();
LONG src = get_long(srca);
{ LONG dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b0ba(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = m68k_getpc();
srca += (LONG)(WORD)nextiword();
{ LONG src = get_long(srca);
{ LONG dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b0bb(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = m68k_getpc();
UWORD srcdp = nextiword();
srca += (LONG)(BYTE)(srcdp & 0xFF);
{ ULONG srcdpr = srcdp & 0x8000 ? regs.a[(srcdp & 0x7000) >> 12] : regs.d[(srcdp & 0x7000) >> 12];
if (!(srcdp & 0x800)) srcdpr = (LONG)(WORD)srcdpr;
srca += srcdpr;
{ LONG src = get_long(srca);
{ LONG dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}}
void op_b0bc(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ LONG src = nextilong();
{ LONG dst = regs.d[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b0c0(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ WORD src = regs.d[srcreg];
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b0c8(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ WORD src = regs.a[srcreg];
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b0d0(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
WORD src = get_word(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b0d8(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
WORD src = get_word(srca);
{ regs.a[srcreg] += 2;
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b0e0(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ regs.a[srcreg] -= 2;
{ CPTR srca = regs.a[srcreg];
WORD src = get_word(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b0e8(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg] + (LONG)(WORD)nextiword();
WORD src = get_word(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b0f0(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
UWORD srcdp = nextiword();
srca += (LONG)(BYTE)(srcdp & 0xFF);
{ ULONG srcdpr = srcdp & 0x8000 ? regs.a[(srcdp & 0x7000) >> 12] : regs.d[(srcdp & 0x7000) >> 12];
if (!(srcdp & 0x800)) srcdpr = (LONG)(WORD)srcdpr;
srca += srcdpr;
{ WORD src = get_word(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}}
void op_b0f8(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = (LONG)(WORD)nextiword();
WORD src = get_word(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b0f9(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = nextilong();
WORD src = get_word(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b0fa(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = m68k_getpc();
srca += (LONG)(WORD)nextiword();
{ WORD src = get_word(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b0fb(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = m68k_getpc();
UWORD srcdp = nextiword();
srca += (LONG)(BYTE)(srcdp & 0xFF);
{ ULONG srcdpr = srcdp & 0x8000 ? regs.a[(srcdp & 0x7000) >> 12] : regs.d[(srcdp & 0x7000) >> 12];
if (!(srcdp & 0x800)) srcdpr = (LONG)(WORD)srcdpr;
srca += srcdpr;
{ WORD src = get_word(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}}
void op_b0fc(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ WORD src = nextiword();
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b100(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ BYTE src = regs.d[srcreg];
{ BYTE dst = regs.d[dstreg];
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((BYTE)(src)) == 0;
regs.n = ((BYTE)(src)) < 0;
regs.d[dstreg] &= ~0xff; regs.d[dstreg] |= (src) & 0xff;
}}}}
void op_b108(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
BYTE src = get_byte(srca);
{ regs.a[srcreg] += (srcreg == 7) ? 2 : 1;
{ CPTR dsta = regs.a[dstreg];
BYTE dst = get_byte(dsta);
{ regs.a[dstreg] += (dstreg == 7) ? 2 : 1;
{ ULONG newv = dst - src;
{ bool flgs = ((BYTE)(src)) < 0;
bool flgo = ((BYTE)(dst)) < 0;
bool flgn = ((BYTE)(newv)) < 0;
regs.z = ((BYTE)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UBYTE)(src)) > ((UBYTE)(dst));
regs.n = flgn != 0;
}}}}}}}}
void op_b110(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ BYTE src = regs.d[srcreg];
{ CPTR dsta = regs.a[dstreg];
BYTE dst = get_byte(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((BYTE)(src)) == 0;
regs.n = ((BYTE)(src)) < 0;
put_byte(dsta,src);
}}}}
void op_b118(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ BYTE src = regs.d[srcreg];
{ CPTR dsta = regs.a[dstreg];
BYTE dst = get_byte(dsta);
{ regs.a[dstreg] += (dstreg == 7) ? 2 : 1;
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((BYTE)(src)) == 0;
regs.n = ((BYTE)(src)) < 0;
put_byte(dsta,src);
}}}}}
void op_b120(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ BYTE src = regs.d[srcreg];
{ regs.a[dstreg] -= (dstreg == 7) ? 2 : 1;
{ CPTR dsta = regs.a[dstreg];
BYTE dst = get_byte(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((BYTE)(src)) == 0;
regs.n = ((BYTE)(src)) < 0;
put_byte(dsta,src);
}}}}}
void op_b128(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ BYTE src = regs.d[srcreg];
{ CPTR dsta = regs.a[dstreg] + (LONG)(WORD)nextiword();
BYTE dst = get_byte(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((BYTE)(src)) == 0;
regs.n = ((BYTE)(src)) < 0;
put_byte(dsta,src);
}}}}
void op_b130(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ BYTE src = regs.d[srcreg];
{ CPTR dsta = regs.a[dstreg];
UWORD dstdp = nextiword();
dsta += (LONG)(BYTE)(dstdp & 0xFF);
{ ULONG dstdpr = dstdp & 0x8000 ? regs.a[(dstdp & 0x7000) >> 12] : regs.d[(dstdp & 0x7000) >> 12];
if (!(dstdp & 0x800)) dstdpr = (LONG)(WORD)dstdpr;
dsta += dstdpr;
{ BYTE dst = get_byte(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((BYTE)(src)) == 0;
regs.n = ((BYTE)(src)) < 0;
put_byte(dsta,src);
}}}}}}
void op_b138(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
{{ BYTE src = regs.d[srcreg];
{ CPTR dsta = (LONG)(WORD)nextiword();
BYTE dst = get_byte(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((BYTE)(src)) == 0;
regs.n = ((BYTE)(src)) < 0;
put_byte(dsta,src);
}}}}
void op_b139(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
{{ BYTE src = regs.d[srcreg];
{ CPTR dsta = nextilong();
BYTE dst = get_byte(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((BYTE)(src)) == 0;
regs.n = ((BYTE)(src)) < 0;
put_byte(dsta,src);
}}}}
void op_b140(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ WORD src = regs.d[srcreg];
{ WORD dst = regs.d[dstreg];
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((WORD)(src)) == 0;
regs.n = ((WORD)(src)) < 0;
regs.d[dstreg] &= ~0xffff; regs.d[dstreg] |= (src) & 0xffff;
}}}}
void op_b148(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
WORD src = get_word(srca);
{ regs.a[srcreg] += 2;
{ CPTR dsta = regs.a[dstreg];
WORD dst = get_word(dsta);
{ regs.a[dstreg] += 2;
{ ULONG newv = dst - src;
{ bool flgs = ((WORD)(src)) < 0;
bool flgo = ((WORD)(dst)) < 0;
bool flgn = ((WORD)(newv)) < 0;
regs.z = ((WORD)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((UWORD)(src)) > ((UWORD)(dst));
regs.n = flgn != 0;
}}}}}}}}
void op_b150(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ WORD src = regs.d[srcreg];
{ CPTR dsta = regs.a[dstreg];
WORD dst = get_word(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((WORD)(src)) == 0;
regs.n = ((WORD)(src)) < 0;
put_word(dsta,src);
}}}}
void op_b158(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ WORD src = regs.d[srcreg];
{ CPTR dsta = regs.a[dstreg];
WORD dst = get_word(dsta);
{ regs.a[dstreg] += 2;
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((WORD)(src)) == 0;
regs.n = ((WORD)(src)) < 0;
put_word(dsta,src);
}}}}}
void op_b160(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ WORD src = regs.d[srcreg];
{ regs.a[dstreg] -= 2;
{ CPTR dsta = regs.a[dstreg];
WORD dst = get_word(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((WORD)(src)) == 0;
regs.n = ((WORD)(src)) < 0;
put_word(dsta,src);
}}}}}
void op_b168(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ WORD src = regs.d[srcreg];
{ CPTR dsta = regs.a[dstreg] + (LONG)(WORD)nextiword();
WORD dst = get_word(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((WORD)(src)) == 0;
regs.n = ((WORD)(src)) < 0;
put_word(dsta,src);
}}}}
void op_b170(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ WORD src = regs.d[srcreg];
{ CPTR dsta = regs.a[dstreg];
UWORD dstdp = nextiword();
dsta += (LONG)(BYTE)(dstdp & 0xFF);
{ ULONG dstdpr = dstdp & 0x8000 ? regs.a[(dstdp & 0x7000) >> 12] : regs.d[(dstdp & 0x7000) >> 12];
if (!(dstdp & 0x800)) dstdpr = (LONG)(WORD)dstdpr;
dsta += dstdpr;
{ WORD dst = get_word(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((WORD)(src)) == 0;
regs.n = ((WORD)(src)) < 0;
put_word(dsta,src);
}}}}}}
void op_b178(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
{{ WORD src = regs.d[srcreg];
{ CPTR dsta = (LONG)(WORD)nextiword();
WORD dst = get_word(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((WORD)(src)) == 0;
regs.n = ((WORD)(src)) < 0;
put_word(dsta,src);
}}}}
void op_b179(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
{{ WORD src = regs.d[srcreg];
{ CPTR dsta = nextilong();
WORD dst = get_word(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((WORD)(src)) == 0;
regs.n = ((WORD)(src)) < 0;
put_word(dsta,src);
}}}}
void op_b180(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ LONG src = regs.d[srcreg];
{ LONG dst = regs.d[dstreg];
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((LONG)(src)) == 0;
regs.n = ((LONG)(src)) < 0;
regs.d[dstreg] = (src);
}}}}
void op_b188(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
LONG src = get_long(srca);
{ regs.a[srcreg] += 4;
{ CPTR dsta = regs.a[dstreg];
LONG dst = get_long(dsta);
{ regs.a[dstreg] += 4;
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}}
void op_b190(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ LONG src = regs.d[srcreg];
{ CPTR dsta = regs.a[dstreg];
LONG dst = get_long(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((LONG)(src)) == 0;
regs.n = ((LONG)(src)) < 0;
put_long(dsta,src);
}}}}
void op_b198(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ LONG src = regs.d[srcreg];
{ CPTR dsta = regs.a[dstreg];
LONG dst = get_long(dsta);
{ regs.a[dstreg] += 4;
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((LONG)(src)) == 0;
regs.n = ((LONG)(src)) < 0;
put_long(dsta,src);
}}}}}
void op_b1a0(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ LONG src = regs.d[srcreg];
{ regs.a[dstreg] -= 4;
{ CPTR dsta = regs.a[dstreg];
LONG dst = get_long(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((LONG)(src)) == 0;
regs.n = ((LONG)(src)) < 0;
put_long(dsta,src);
}}}}}
void op_b1a8(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ LONG src = regs.d[srcreg];
{ CPTR dsta = regs.a[dstreg] + (LONG)(WORD)nextiword();
LONG dst = get_long(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((LONG)(src)) == 0;
regs.n = ((LONG)(src)) < 0;
put_long(dsta,src);
}}}}
void op_b1b0(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
ULONG dstreg = (opcode & 7) >> 0;
{{ LONG src = regs.d[srcreg];
{ CPTR dsta = regs.a[dstreg];
UWORD dstdp = nextiword();
dsta += (LONG)(BYTE)(dstdp & 0xFF);
{ ULONG dstdpr = dstdp & 0x8000 ? regs.a[(dstdp & 0x7000) >> 12] : regs.d[(dstdp & 0x7000) >> 12];
if (!(dstdp & 0x800)) dstdpr = (LONG)(WORD)dstdpr;
dsta += dstdpr;
{ LONG dst = get_long(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((LONG)(src)) == 0;
regs.n = ((LONG)(src)) < 0;
put_long(dsta,src);
}}}}}}
void op_b1b8(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
{{ LONG src = regs.d[srcreg];
{ CPTR dsta = (LONG)(WORD)nextiword();
LONG dst = get_long(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((LONG)(src)) == 0;
regs.n = ((LONG)(src)) < 0;
put_long(dsta,src);
}}}}
void op_b1b9(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 3584) >> 9);
{{ LONG src = regs.d[srcreg];
{ CPTR dsta = nextilong();
LONG dst = get_long(dsta);
src ^= dst;
regs.v = regs.c = 0;
regs.z = ((LONG)(src)) == 0;
regs.n = ((LONG)(src)) < 0;
put_long(dsta,src);
}}}}
void op_b1c0(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ LONG src = regs.d[srcreg];
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b1c8(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ LONG src = regs.a[srcreg];
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b1d0(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
LONG src = get_long(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b1d8(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
LONG src = get_long(srca);
{ regs.a[srcreg] += 4;
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b1e0(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ regs.a[srcreg] -= 4;
{ CPTR srca = regs.a[srcreg];
LONG src = get_long(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b1e8(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg] + (LONG)(WORD)nextiword();
LONG src = get_long(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b1f0(UWORD opcode)
{
ULONG srcreg = (LONG)(BYTE)((opcode & 7) >> 0);
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = regs.a[srcreg];
UWORD srcdp = nextiword();
srca += (LONG)(BYTE)(srcdp & 0xFF);
{ ULONG srcdpr = srcdp & 0x8000 ? regs.a[(srcdp & 0x7000) >> 12] : regs.d[(srcdp & 0x7000) >> 12];
if (!(srcdp & 0x800)) srcdpr = (LONG)(WORD)srcdpr;
srca += srcdpr;
{ LONG src = get_long(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}}
void op_b1f8(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = (LONG)(WORD)nextiword();
LONG src = get_long(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b1f9(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = nextilong();
LONG src = get_long(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}
void op_b1fa(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = m68k_getpc();
srca += (LONG)(WORD)nextiword();
{ LONG src = get_long(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}
void op_b1fb(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ CPTR srca = m68k_getpc();
UWORD srcdp = nextiword();
srca += (LONG)(BYTE)(srcdp & 0xFF);
{ ULONG srcdpr = srcdp & 0x8000 ? regs.a[(srcdp & 0x7000) >> 12] : regs.d[(srcdp & 0x7000) >> 12];
if (!(srcdp & 0x800)) srcdpr = (LONG)(WORD)srcdpr;
srca += srcdpr;
{ LONG src = get_long(srca);
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}}}
void op_b1fc(UWORD opcode)
{
ULONG dstreg = (opcode & 3584) >> 9;
{{ LONG src = nextilong();
{ LONG dst = regs.a[dstreg];
{ ULONG newv = dst - src;
{ bool flgs = ((LONG)(src)) < 0;
bool flgo = ((LONG)(dst)) < 0;
bool flgn = ((LONG)(newv)) < 0;
regs.z = ((LONG)(newv)) == 0;
regs.v = (flgs != flgo) && (flgn != flgo);
regs.c = ((ULONG)(src)) > ((ULONG)(dst));
regs.n = flgn != 0;
}}}}}}